package cn.tedu.spring.exercise;

public class Product {
    private String title;
    private int num;
    private int sales;
    private String comment;

    public Product() {
    }

    public Product(String title, int num, int sales, String comment) {
        this.title = title;
        this.num = num;
        this.sales = sales;
        this.comment = comment;
    }

    public Product(String title) {
    }

    @Override
    public String toString() {
        return "(" +title + '\'' + num + '\''+ sales + '\''+ comment + '\'' + ')';
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getSales() {
        return sales;
    }

    public void setSales(int sales) {
        this.sales = sales;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
